#!/usr/bin/env python
#coding=utf-8
#author=yobin

from google.appengine.ext import db

class Rssfeed(db.Model):
    user      = db.StringProperty(required=True)
    feed      = db.LinkProperty(required=True)
    status    = db.IntegerProperty(default = 0)

class Feeditem(db.Model):
    #rssfeed   = db.ReferenceProperty(Rssfeed,collection_name='own_feed')
    user      = db.StringProperty(required=True)
    title     = db.StringProperty()
    link      = db.LinkProperty(required=True)
    status    = db.IntegerProperty(default = 0)

    
class Token(db.Model):
    name      = db.StringProperty(required=True)
    status    = db.IntegerProperty(default = 0)
    